package com.example.Lambda;

public class Test {
    public static void main(String[] args) {
        useInter((double a, double b) -> {
            return a + b;
        });

        useInter((a, b) -> a + b);
    }

    public static void useInter(Inter inter) {
        double result = inter.method(12.3, 22.3);
        System.out.println(result);
    }
}

interface Inter {
    double method(double a, double b);
}